package cn.tedu.spring.eg1;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class product {
    @Value("ad")
    private String title;
    @Value("50")
    private String num;
    @Value("af")
    private String comment;

    @Override
    public String toString() {
        return "product{" +
                "title='" + title + '\'' +
                ", num='" + num + '\'' +
                ", comment='" + comment + '\'' +
                '}';
    }
}
